﻿using com.iot.core.annotation;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Linq;

namespace com.iot.core.data.entity
{
    [Schema(Name = "用户机构表", Description = "")]     
    public class HtUserDept : BaseEntity, ISoftDeletedEntity    
    {




        [Comment("用户编号")]
        [Schema(Name = "用户编号", Description = "")]
        public long HtuserId { get; set; }


        [Comment("机构编号")]
        [Schema(Name = "机构编号", Description = "")]
        public long HtdeptId { get; set; }


        [Comment("状态")]
        [Schema(Name = "状态", Description = "启用、停用")]
        [MaxLength(10)]
        public string State { get; set; } = "";


        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("创建人编号")]
        [Schema(Name = "创建人编号", Description = "")]
        public long CrtUid { get; set; }


        [Comment("机构编号")]
        [Schema(Name = "机构编号", Description = "")]
        public long CrtDid { get; set; }


        [Comment("修改日期")]
        [Schema(Name = "修改日期", Description = "")]
        public DateTime EdtDt { get; set; }


        [Comment("修改人编号")]
        [Schema(Name = "修改人编号", Description = "")]
        public long EdtUid { get; set; }


        [Comment("Gid")]
        [Schema(Name = "Gid", Description = "")]
        public Guid Gid { get; set; }


        [Comment("删除标志")]
        [Schema(Name = "删除标志", Description = "")]
        public bool Deleted { get; set; }
    }
}
